<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'menu-form',
	'enableAjaxValidation'=>false,
)); ?>
	<p class="note"><?php echo strtr(Yii::t('BackEnd', 'The fields {*} are required.'), array('{*}'=>'<span class="required">*</span>'))?></p>
    <table id="Menu-basic-info" class="form-view">
        <tr class="odd">
                <th><?php echo $form->labelEx($model,'name'); ?></th>
                <td>
                    <?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
                    <?php echo $form->error($model,'name'); ?>
                </td>
            </tr>
            <tr class="even">
                <th><?php echo $form->labelEx($model,'type'); ?>
                </th>
                <td>
                    <?php echo $form->dropDownList($model,'type',Menu::model()->dumptypeArray()); ?>
                    <?php echo $form->error($model,'type'); ?>
                </td>
            </tr>
            
            <tr class="odd">
                <th><?php echo $form->labelEx($model,'status'); ?></th>
                <td>
                    <?php echo $form->dropDownList($model,'status', array(Menu::STATUS_ENABLED=>Yii::t('BackEnd', 'Enabled'), Menu::STATUS_DISABLED=>Yii::t('BackEnd', 'Disabled'))); ?>
                    <?php echo $form->error($model,'status'); ?>
                </td>
            </tr>
            <tr class="even">
                <th><?php echo $form->labelEx($model,'sorder'); ?></th>
                <td>
                    <?php echo $form->textField($model, 'sorder',array('size'=>5,'maxlength'=>10, 'class'=>'numbersOnly')); ?>
                    <?php echo $form->error($model,'sorder'); ?>
                </td>
            </tr>
    </table>
    <input type="submit" style="display:none"/>
<?php $this->endWidget(); ?>
</div><!-- form -->